/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package objects;
import java.util.Timer;
import java.util.TimerTask;
/**
 *
 * @author nguyen xuan loc
 */
public class MyDetector {

    private ScanningLocation location;
    private Map mapLocation;
    
    public MyDetector()
    {
        location = null;
        mapLocation = null;
    }
    public MyDetector(ScanningLocation m_location, Map map)
    {
        this.location = m_location;
        this.mapLocation = map;
    }
    public String startLocalization()
    {
        String yourPlace = null;
        //location.startScanning();
        yourPlace = mapLocation.Localize(location);
        return yourPlace;
    }
    public void setMap(Map m)
    {
        mapLocation = m;
    }
    public Map getMap()
    {
        return mapLocation;
    }
    public ScanningLocation getLocation()
    {
        return location;
    }
   
}
